.video-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.video-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

/* 媒体资源列表样式 */
.media-list {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

/* 媒体项目样式 */
.media-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.media-item:last-child {
    border-bottom: none;
}

.media-item:hover {
    background-color: #f8f9fa;
}

/* 媒体信息样式 */
.media-info {
    display: flex;
    align-items: center;
    flex: 1;
    overflow: hidden;
}

.media-info i {
    margin-right: 0.5rem;
    color: #6c757d;
}

.media-format {
    font-weight: bold;
    margin-right: 1rem;
    white-space: nowrap;
    color: #495057;
    min-width: 80px;
}

.media-url {
    color: #6c757d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 媒体操作按钮样式 */
.media-actions {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

/* 下载进度和状态样式 */
.progress {
    height: 20px;
    border-radius: 5px;
    margin-top: 15px;
    margin-bottom: 15px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.3s ease;
}

.download-status {
    margin-bottom: 15px;
}

.download-status p {
    margin-bottom: 10px;
}

/* 下载按钮样式 */
.start-download-btn {
    margin-right: 10px;
}

/* 移动设备适配 */
@media (max-width: 768px) {
    .video-list {
        grid-template-columns: 1fr;
    }
    
    .media-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .media-actions {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
        justify-content: flex-end;
    }
    
    .media-format {
        min-width: 60px;
    }
}

.video-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.video-thumbnail {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.video-info {
    margin-bottom: 10px;
}

.download-progress {
    height: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.alert-area {
    margin-top: 15px;
}

.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
}

.loading-text {
    display: inline-block;
    vertical-align: middle;
}

/* 加载指示器样式 */
#loadingIndicator {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    background-color: rgba(0, 123, 255, 0.1);
    border-left: 4px solid #007bff;
    animation: fadeIn 0.3s ease;
}

.format-badge {
    margin-right: 5px;
}

.streams-container {
    margin-top: 15px;
    margin-bottom: 10px;
}

.streams-container table {
    font-size: 0.9rem;
}

.streams-container th {
    background-color: #f8f9fa;
}

.streams-container .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* 新增客户端下载界面样式 */
.direct-download-container {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease;
}

.direct-download-container:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 提示信息样式 */
.alert-info {
    border-left: 4px solid #17a2b8;
}

.alert-warning {
    border-left: 4px solid #ffc107;
}

.alert-danger {
    border-left: 4px solid #dc3545;
}

.alert-success {
    border-left: 4px solid #28a745;
}

.direct-download-container h5 {
    margin-bottom: 10px;
    color: #333;
}

.direct-download-container .table {
    margin-top: 15px;
    border-collapse: collapse;
}

.direct-download-container .btn {
    white-space: nowrap;
    transition: all 0.2s ease;
}

.direct-download-container .btn:hover {
    transform: translateY(-2px);
}